#include "stdafx.h"

#include "subtract-the-product-and-sum-of-digits-of-an-integer.h"

#define BOOST_TEST_MODULE subtract-the-product-and-sum-of-digits-of-an-integer-test
#include <boost/test/unit_test.hpp>

BOOST_AUTO_TEST_CASE(sample1) {
    BOOST_CHECK_EQUAL(Solution{}.subtractProductAndSum(234), 15);
}

BOOST_AUTO_TEST_CASE(sample2) {
    BOOST_CHECK_EQUAL(Solution{}.subtractProductAndSum(4421), 21);
}
